/**
 * Note: The returned array must be malloced, assume caller calls free().
 */
int* twoSum(int* nums, int numsSize, int target, int* returnSize)
{
    *returnSize = 2;

    int i = 0;
    for(i = 0; i < numsSize; ++i)
    {
        int j = 0;
        for(j = i + 1; j < numsSize; ++j)
        {
            if((nums[i] + nums[j]) == target)
            {
                nums[0] = i;
                nums[1] = j;
                return nums;
            }


        }
    }
    return nums;
}